package com.xuxueli.applyModules.utils;
import org.javatuples.Pair;
import org.javatuples.Unit;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 测试多个参数
 */
public class TestMorePara {

    public static void main(String[] args) {
//        Unit<A> (1 element)
//        Pair<A,B> (2 elements)
//        Triplet<A,B,C> (3 elements)
//        Quartet<A,B,C,D> (4 elements)
//        Quintet<A,B,C,D,E> (5 elements)
//        Sextet<A,B,C,D,E,F> (6 elements)
//        Septet<A,B,C,D,E,F,G> (7 elements)
//        Octet<A,B,C,D,E,F,G,H> (8 elements)
//        Ennead<A,B,C,D,E,F,G,H,I> (9 elements)
//        Decade<A,B,C,D,E,F,G,H,I,J> (10 elements)
        Unit<String> unit = new Unit<>("asad");
        System.out.println(unit.getValue0());
        Pair<BigDecimal, Date> pair = new Pair<>(new BigDecimal("67678"), new Date());
        System.out.println(pair.getValue0()+""+pair.getValue1());
    }
}
